<template>
	<view>
		<view class="withItem" v-for="(item,index) in turnovers" :key="index">
			<view class="firstRow">
				<view class="cardName">
					{{item.bankName}}
				</view>
				<view class="account">
					{{item.money}}
				</view>
				<view class="status">
					{{item.cashSatusText}}
				</view>
			</view>
			<view class="firstRow">
				<view class="timer">
					{{item.createTime}}
				</view>
				<view class="cardNo">
					{{item.accNo}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				turnovers: [],

			}
		},
		onLoad(){
			this.loadList()
		},
		methods: {

			loadList() {
				let that = this
				that.$Request.request('/api/user_center/cashDrawLog', 'GET', {}).then(res => {
					if (res.status == 1) {
						that.turnovers = res.data
					}
				}).catch(err => {
					console.log(err)
				})
			},
		}
	}
</script>

<style scoped lang="scss">

	.withItem {
		width: 710rpx;
		padding: 26rpx;
		border-radius: 8rpx;
		box-shadow: 0 0 5rpx rgba($themColor, 0.6);
		font-size: $uni-font-size-sm;
		margin: 20rpx auto 0 auto;

		.firstRow {
			@extend %flexBetw;
			height: 60rpx;
		}
	}

</style>
